using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DALTMClient.WSDL;

namespace DALTMClient
{
    public partial class frmAddFriend : Form
    {
        AluMessenger chat = new AluMessenger();
        public static string FriendUser = "";
        public frmAddFriend()
        {
            InitializeComponent();
        }

        private void btnNext_Click(object sender, EventArgs e)
        {
            try
            {
                if (chat.IsExistsUserName(txtGlobalID.Text))
                {
                    FriendUser = txtGlobalID.Text;
                    this.Hide();
                    frmAddtoMessengerList frm = new frmAddtoMessengerList();
                    frm.ShowDialog();
                    this.Close();
                }
                else MessageBox.Show("Please enter an account is exists!", "Alu! Messenger!");
            }
            catch
            {
            }
        }

        private void btnBack_Click(object sender, EventArgs e)
        {
            Dispose();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            Dispose();
        }
    }
}